import request from '@/utils/request'

// 查询文章收藏记录列表
export function listUserFavoriteArticles(query) {
  return request({
    url: '/education/UserFavoriteArticles/list',
    method: 'get',
    params: query
  })
}

// 查询文章收藏记录详细
export function getUserFavoriteArticles(id) {
  return request({
    url: '/education/UserFavoriteArticles/' + id,
    method: 'get'
  })
}

// 新增文章收藏记录
export function addUserFavoriteArticles(data) {
  return request({
    url: '/education/UserFavoriteArticles',
    method: 'post',
    data: data
  })
}

// 修改文章收藏记录
export function updateUserFavoriteArticles(data) {
  return request({
    url: '/education/UserFavoriteArticles',
    method: 'put',
    data: data
  })
}

// 删除文章收藏记录
export function delUserFavoriteArticles(id) {
  return request({
    url: '/education/UserFavoriteArticles/' + id,
    method: 'delete'
  })
}
